package com.studio5704website.application.data;

import lombok.Data;
import lombok.Setter;

/**
 * @author 高威
 * 用户权限类, 用于与redis交互
 */
@Data
@Setter
public class RoleWithToken {
    private String id;
    private String token;
    private String permission;
    private long dueTime;

    public RoleWithToken() {

    }

    public RoleWithToken(String id, String token, String permission, long dueTime) {
        this.id = id;
        this.token = token;
        this.permission = permission;
        this.dueTime = dueTime;
    }
}
